package com.clz.hyperit.util;

import java.util.HashMap;
import java.util.Map;

import org.springframework.stereotype.Component;
import org.springframework.stereotype.Service;

import com.clz.hyperit.vo.OcassionMail;
@Service("mapUtil")
public class MapUtil{
	public static Map<String, OcassionMail> map = new HashMap<String, OcassionMail>();

	public void put(String key,OcassionMail obj){
		System.out.println("------------------添加map数据----------------");
		map.put(key,obj);
	}
	public void clear(){
		System.out.println("------------------清空map数据----------------");
		if(map!=null){
			map.clear();
		}
	}
	public void remove(String key){
		System.out.println("------------------移除map数据----------------");
		map.remove(key);
	}
	public Map<String, OcassionMail> getMap() {
		return map;
	}
	public void setMap(Map<String, OcassionMail> map) {
		MapUtil.map = map;
	}
	
}
